package com.example.emos.wx.service.impl;

import com.example.emos.wx.entity.TbDept;
import com.example.emos.wx.mapper.TbDeptMapper;
import com.example.emos.wx.service.TbDeptService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author MC鹏浩
 * @since 2021-03-02
 */
@Service
public class TbDeptServiceImpl extends ServiceImpl<TbDeptMapper, TbDept> implements TbDeptService {

    @Autowired
    private TbDeptMapper tbDeptMapper;

    @Override
    public List<TbDept> queryList() {
        List<TbDept> tbDepts = tbDeptMapper.selectList(null);
        return tbDepts;
    }
}
